//
// Created by Administrator on 2021/5/24.
// @file DBusServiceLog.cpp
// @author jmdvirus
// @date 2021-05-24 15:42:15
//

#include "DBusServiceLog.h"

DBusServiceLog::DBusServiceLog(DBus::Connection &conn)
    : DBus::ObjectProxy(conn, "/com/webfuture/jklibs/systeminfo",
                        "uk.org.thekelleys.dnsmasq")
{
}

void DBusServiceLog::Queryed(const std::vector<std::string> &list)
{
    printf("queryed list\n");
    for (auto &i : list)
    {
        printf("i : [%s]\n", i.c_str());
    }
}

int DBusServiceLog::UseFunction()
{
    std::string tt     = "sys";
    std::string result = GetSysInfo(tt);
    printf("result [%s]\n", result.c_str());
    return 0;
}
